package com.oms.web.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.oms.web.constraint.validator.CheckEmailValidator;

@Target({ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy=CheckEmailValidator.class)
public @interface CheckUserEmail {
	
	String message() default "该邮箱已被注册";
	
    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default {};
	
//	String email() default "";

}
